import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import i18n from './i18n'  // 语言包
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 使用router
const app = createApp(App);
//全局引入图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 设置全局变量
app.config.globalProperties.$API_URL = 'http://127.0.0.1:5000';
app.config.globalProperties.$FRONT_URL = 'http://127.0.0.1:5173';
// 使用router

app.use(i18n).use(router).mount('#app');